@(userForm: Form[User], apiKeys: List[ApiKey], msg: String)
<h3>API keys</h3>
<table class="table table-hover">
    <thead>
        <tr>
            <th>keyId</th>
            <th>vCode</th>
            <th>endDate</th>
        </tr>
    </thead>
    <tbody>
        @for(apiKey <- apiKeys){
            <tr>
                <td>@apiKey.getKeyId()</td>
                <td>@apiKey.getvCode()</td>
                <td>@apiKey.getEndDate()</td>
            </tr>
        }
    </tbody>
</table>
<br />
@helper.form(action = routes.Users.changePassword) {
    <dl>
        <dt><label for="oldPassword">old password</label></dt>
        <dd>
            <input type="password" id="oldPassword" name="oldPassword">
        </dd>
        <dd class="info">Required</dd>
    </dl>
    @helper.inputPassword(userForm("password"))
    
    <button id="change-password" class="btn btn-primary">Change password</button>
    @if(!msg.isEmpty()){
        @Html(msg)
    }
}